<?php
  include('./library/conn.php');
   // 接受一个id
  // $id = $_REQUEST['id'];
  $id=10004;

  $sql = "select * from product where id = $id";

    $res = $conn->query($sql);

    $conn->close();

    $row = $res->fetch_assoc();

    $json = json_encode($row);

    echo $json;
?>